


// 注意要引入jQuery的CDN才能使用该方法
let obj1 = {
	name: "小李",
	age: 18,
	father: {
		age: 40
	},
	fn: function () {
		return 123
	}
}

let obj2 = $.extend(true, {}, obj1)

obj1.father.age = 50;

console.log(obj1,obj2);

